﻿@if(Request.IsAuthenticated) {
    @Html.ActionLink("Log off", "LogOff", "Account")
}
else {
    @: @Html.ActionLink("Login", "LogOn", "Account")
}
